package com.sikaryofficial.backend.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sikaryofficial.backend.domain.entity.ProductStatistics;
import com.sikaryofficial.backend.mapper.ProductStatisticsMapper;
import com.sikaryofficial.backend.service.IProductStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 产品统计Service业务层处理
 *
 * @author qinjinyuan
 * @date 2024-03-12
 */
@Service
public class ProductStatisticsServiceImpl extends ServiceImpl<ProductStatisticsMapper, ProductStatistics> implements IProductStatisticsService {
    @Autowired
    private ProductStatisticsMapper productStatisticsMapper;
    @Override
    public int insertStatisticsData(ProductStatistics result) {
        return productStatisticsMapper.insertStatisticsData(result);
    }

    @Override
    public int insertNormalStatisticsData(ProductStatistics result) {
        return productStatisticsMapper.insertNormalStatisticsData(result);
    }
}
